//
//  TwoTableViewCell.swift
//  BusinessIOS
//
//  Created by Rain on 2018/12/26.
//  Copyright © 2018 XingJian Li. All rights reserved.
//

import UIKit

class TwoTableViewCell: UITableViewCell {

    var BgImages:UIImageView!
    
    var nameLabels:UILabel!
    
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder)
        
    }
    
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.lauoutUI()
        
    }
    
    func lauoutUI() {
        
        
        self.BgImages = UIImageView()

        self.BgImages.image = UIImage(named:"jiantou")
        self.contentView.addSubview(self.BgImages!)
        
        
        
        self.nameLabels = UILabel()
        
        self.nameLabels.text = "1111111111"
        self.nameLabels.textAlignment = .center
        self.nameLabels.font = UIFont.systemFont(ofSize:15)//一般方法
        self.contentView.addSubview(self.nameLabels!)
        
    }
    
    override func layoutSubviews() {
        
        super.layoutSubviews()
        
        
        
        self.BgImages.frame = CGRect(x: 10, y: 15, width: 10, height: 10)
        
        
        self.nameLabels.frame = CGRect(x: 20, y: 0, width: self.frame.size.width-20, height: 40)
        
        
        
    }

}
